<?php defined('SYSPATH') OR die('No direct access allowed.');?>
<TABLE id="memberlist" class="rounded">
	<THEAD>
		<TR>
			<TH COLSPAN="4">
				<FORM ACTION="<?=Router::uri('forum', array('controller'=>Router::$controller, 'method'=>'search'))?>" METHOD="POST">
					<LABEL FOR="username"><?=Kohana::lang('members.search.title')?></LABEL>
					<INPUT type='text' name='username' id='username' maxlength="127" title="<?=Kohana::lang('account.username.label')?>" />
					<INPUT type='submit' title='<?=Kohana::lang('members.search.submit')?>' value="&raquo;"/>
				</FORM>
			</TH>
		</TR>
		<TR>
			<TH COLSPAN="2"><?=Kohana::lang('forum_user.username.title')?></TH>
			<TH><?=Kohana::lang('account.city.label')?></TH>
			<TH><?=Kohana::lang('account.website.label')?></TH>
			<TH><?=Kohana::lang('forum_user.role.title')?></TH>
			<TH><?=Kohana::lang('forum_user.post_count')?></TH>
			<TH><?=Kohana::lang('forum_user.comment_count')?></TH>
			<TH><?=Kohana::lang('account.profile.account_created')?></TH>
		</TR>
	</THEAD>
	<TBODY>
	<? foreach($users as $user): ?>
		<TR CLASS="<?=text::alternate('even', 'odd')?>">
			<TD class="avatar"><?=$user->avatar(32);?></TD>
			<TD><STRONG><?=html::anchor(Router::uri('forum', array('controller'=>'members', 'method'=>$user->id)), $user->username, array('class'=>'role_'.$user->role))?></STRONG></TD>
			<TD><?=$user->user_detail->city?></TD>
			<TD class="centered"><?=text::auto_link_urls($user->user_detail->website)?></TD>
			<TD class="centered"><?=$user->role?></TD>
			<TD class="centered"><?=$user->userinfo->post_count?></TD>
			<TD class="centered"><?=$user->userinfo->comment_count?></TD>
			<TD><?=cmsformat::timestamp('main.dateonly', $user->created)?></TD>
		</TR>
	<? endforeach; ?>
	</TBODY>
</TABLE>
